package com.maimang.platform.annotation;


import com.maimang.platform.enums.BusinessType;
import com.maimang.platform.enums.OperatorType;

import java.lang.annotation.*;

/**
 * @author Rocky
 * @version 1.0.0
 * @classname EnableFeignClients
 * @description <br>自定义操作日志记录注解</br>
 * @date 2019-01-12 16:21
 * @email jintaozhao@qq.com
 */
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {
	/**
	 * 模块
	 */
	String title() default "";

	/**
	 * 功能
	 */
	BusinessType businessType() default BusinessType.OTHER;

	/**
	 * 操作人类别
	 */
	OperatorType operatorType() default OperatorType.MANAGE;

	/**
	 * 是否保存请求的参数
	 */
	boolean isSaveRequestData() default true;
}
